﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using SMSSnew.DATA;

namespace SMSSnew.BIZ
{
    public class LeaveBIZ
    {
        LeaveApplicationListDA obj1;
        DataTable dt;

        public string countMedicalCasalFulldayLeaves(string teacherID)
        {
            obj1 = new LeaveApplicationListDA();
            string total="";

           // total = obj1.countMedicalCasualLeaves(teacherID, "countMedicalCasualLeavesNewForFullday");
            return total;
        }

        public string countMedicalCasalHalfdayLeaves(string teacherID)
        {
            obj1 = new LeaveApplicationListDA();
            string total = "";

        //    total = obj1.countMedicalCasualLeaves(teacherID, "countMedicalCasualLeavesNewForHalfAndShort");
            return total;
        }

        //public int getMaxMedical()
        //{
        //    obj1 = new LeaveApplicationList();
        ////    int mediMax = obj1.maxLeaves("maxMedi");
        // //   return mediMax;
        //}

        //public int getMaxCasual()
        //{
        //    obj1 = new LeaveApplicationList();
        // //   int casMax = obj1.maxLeaves("maxCas");
        ////    return casMax;
        //}

        public void submitLeave(string noOfReqstedLeaves, string leaveType, string reason, string fromDate, string toDate)
        {

        }
    }
}
